import 'dart:async';

import 'package:shared_preferences/shared_preferences.dart';

// 常量config信息key
const _fileKey = "FILE_KEY";

saveFileConfig(String value) async {
  final prefs = await SharedPreferences.getInstance();
  await prefs.setString(_fileKey, value);
}

Future<String?> getFileConfig() async {
  final prefs = await SharedPreferences.getInstance();
  final value = prefs.getString(_fileKey);
  return value;
}

Future<bool> delFileConfig() async {
  final prefs = await SharedPreferences.getInstance();
  final res = await prefs.remove(_fileKey);
  return res;
}
